package com.itheima.mall.pojo;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 购物车表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("oms_cart_item")
public class CartItem {

    private Long id;
    private Long productId;
    private Long productSkuId;
    private Long memberId;
    private Integer quantity;              //购买数量
    private BigDecimal price;               //添加到购物车的价格
    private String productPic;              //商品主图
    private String productName;             //商品名称
    private String productSubTitle;         //商品副标题（卖点）
    private String productSkuCode;          //商品sku条码
    private String memberNickname;          //会员昵称
    private DateTime createDate;                //创建时间
    private DateTime modifyDate;                //修改时间
    private Integer deleteStatus;           //是否删除
    private Long productCategoryId;         //商品分类
    private String productBrand;
    private String productSn;
    private String productAttr;             //商品销售属性:[{"key":"颜色","value":"颜色"},{"key":"容量","value":"4G"}]

}
